using Microsoft.EntityFrameworkCore;
using CRUD.Models;

namespace CRUD.Db
{
    public class DbDemos : DbContext
    {
        private readonly string _conString="server=.;database=DbDemos;uid=sa;pwd=123456;";

        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            builder.UseSqlServer(_conString);
        }


        public DbSet<Category> Category { get; set; }
        public DbSet<Product> Product { get; set; }
    }
}